package com.cjl.commons.result;

import lombok.Getter;

@Getter
public enum ResultCodeEnum {
    SUCCESS(200, "成功"),
    FAIL(201, "失败"),
    DATA_ERROR(202, "数据异常"),

    LOGIN_MOBLE_ERROR(203, "手机号码错误"),
    LOGIN_ERROR(208, "认证失败"),
    LOGIN_AUTH(304, "未登录"),
    ACCOUNT_STOP(406, "用户封禁"),


    PERMISSION(410, "没有权限"),
    SERVICE_ERROR(500, "服务异常");

    private Integer code;

    private String message;

    ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
